import request from "@/utils/request";

export default {
    getVideo(){
        return request(
            {
                url:"video/getAll",
                method:"get"
            }
        )
    },
    searchVideo(key){
        return request(
            {
                url:"video/searchVideo",
                method:"get",
                params:{
                    key:key
                }
            }
        )
    },
    getVideoInfo(webCode) {
        return request({
            url:"video/getVideoInfo",
            method:"get",
            params:{
                webCode:webCode
            }
        })
    }
}
